var express=require('express');
var router=new express.Router();

var userService = require('../service/userService')

router.get('/login',function (req,res) {

    var user={
         username:req.query.username,
         password:req.query.password
    }
   /*var flag= userService.login(user);
    res.send({
        flag:flag
    })*/

     userService.login(user,function (isSuccess) {
          res.send({
             flag:isSuccess
          })
     })

    console.log(req.query);
})

module.exports = router;
